<!DOCTYPE html>
<html>
<head>
<title>SystemConfig.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="views/parkLotCenter/SystemConfigManager/js/SystemConfig.js"></script>
<style type="text/css">
#systemConfigDiv .list {
	display: inline-block;
	margin: 5px 0;
}

#systemConfigDiv .list label {
	width: 140px;
	display: inline-block;
	text-align: right;
}

#systemConfigDiv fieldset {
	border-radius: 6px;
	border: 1px solid rgba(51, 51, 51, 0.2);
	margin: 20px;
	padding: 10px 20px;
}
/* #systemConfigDiv .title { */
/* 	width:800px; */
/* 	height:40px; */
/* 	overflow:hidden; */
/* 	position:relative; */
/* 	margin:0 auto; */
/* } */
/* #systemConfigDiv .scroll { */
/* 	width:1000px; */
/* 	position:absolute; */
/* 	left:0px; */
/* 	top:0px; */
/* 	color:red; */
/* 	text-align:center; */
/* } */
</style>
</head>
<script>
	var systemConfig = null;
	$(document).ready(function() {
		systemConfig = new SystemConfigJs($("#systemConfigDiv"));
	});
// 	文字滚动
// 	$(function() {
//     var num = 0;
//     function goLeft() {
//         750是根据你给的尺寸，可变的
//         if (num == -1000) {
//             num = 0;
//         }
//         num -= 1;
//         $(".scroll").css({
//             left: num
//         })
//     }
//     设置滚动速度
//     var timer = setInterval(goLeft, 20);
//     设置鼠标经过时滚动停止
//     $(".title").hover(function() {
//         clearInterval(timer);
//     },
//     function() {
//         timer = setInterval(goLeft, 20);
//     })
// })
</script>
<body>
	<div id="systemConfigDiv">
		<div id="tabstrip-left">
			<ul>
				<li class="k-state-active" style="height: 50px">系统参数<br>配置管理</li>
				<li style="height: 50px">定时任务<br>参数配置</li>
			</ul>
			<div name="tabStripDiv" style="overflow-y:auto" taskTypes="basisTask">
				<div cns="smsConfig" code="SMS">
					<fieldset>
						<legend>短信服务配置</legend>
						<div class="list">
							<label>短信服务地址：</label> <input type="text" class="k-textbox"
								data-bind="value:smsUrl" required validationMessage="短信服务地址为必填" />
						</div>
						<div class="list">
							<label>短信服务端口：</label> <input type="text" class="k-textbox"
								data-bind="value:smsProt" required
								pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"
								validationMessage="请输入正确的端口号 0~65535" />
						</div>
						<div class="list">
							<label>短信账户SID：</label> <input type="text" class="k-textbox"
								data-bind="value:accountSid" required pattern="^\w+$"
								validationMessage="短信账户SID只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>短信账户Token：</label> <input type="text" class="k-textbox"
								data-bind="value:accountToken" required pattern="^\w+$"
								validationMessage="短信账户Token只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>短信账户ID：</label> <input type="text" class="k-textbox"
								data-bind="value:appIdSMS" required pattern="^\w+$"
								validationMessage="短信账户ID只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>短信模版ID：</label> <input type="text" class="k-textbox"
								data-bind="value:templateId" required pattern="^\w+$"
								validationMessage="短信账户ID只能为数字、字母、下划线组成" />
						</div>
						</br>
						<div id="testDiv">
							<div class="list">
								<label>测试手机号：</label> <input type="text" class="k-textbox"
									id="testMobile" pattern="^1[3|4|5|8][0-9]\d{8}$"
									validationMessage="测试手机号只能为数字" />
							</div>
							<button data-bind="click:sendTestSMS">发送测试短信</button>
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:SMSConfigSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="sweepWxConfig" code="SWEEP_WX">
					<fieldset>
						<legend>微信服务配置</legend>
						<div class="list" style="width: 645px;">
							<label>微信服务地址：</label> <input type="text" class="k-textbox"
								style="width: 495px;" data-bind="value:wxUrl" required
								pattern="[a-zA-z]+://[^\s]*" validationMessage="请填写正确的URL地址" />
						</div>
						</br>
						<div class="list">
							<label>微信Token：</label> <input type="text" class="k-textbox"
								data-bind="value:wxToken" required pattern="^[A-Za-z0-9]+$"
								validationMessage="微信Token只能为数字和字母" />
						</div>
						<div class="list">
							<label>微信客户编码：</label> <input type="text" class="k-textbox"
								data-bind="value:wxcustCode" required pattern="^[A-Za-z0-9]+$"
								validationMessage="微信客户编码只能为数字和字母" />
						</div>
						<div class="list">
							<label>产品唯一码：</label> <input type="text" class="k-textbox"
								data-bind="value:productId" required pattern="^[A-Za-z0-9]+$"
								validationMessage="产品唯一码只能为数字和字母" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:sweepConfigSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="controlPanelConfig" code="CONTROL_PANEL">
					<fieldset>
						<legend>控制板服务配置</legend>
						<div class="list">
							<label>数据接收IP：</label> <input type="text" class="k-textbox"
								data-bind="value:receiveIP" required
								pattern="((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)"
								validationMessage="请输入正确的IP地址如：192.168.1.1" />
						</div>
						<div class="list">
							<label>数据接收端口：</label> <input type="text" class="k-textbox"
								data-bind="value:receivePort" required
								pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"
								validationMessage="请输入正确的端口号 0~65535" />
						</div>
						<div class="list">
							<label>数据编码格式：</label> <input type="text" class="k-textbox"
								data-bind="value:jnaEncoding" required pattern="^[A-Za-z0-9]+$"
								validationMessage="数据编码格式只能为数字和字母" />
						</div>
						<div class="list">
							<label>数据接收超时(毫秒)：</label> <input type="text" class="k-textbox"
								data-bind="value:jnaTimeout" required pattern="^\d{4,6}$"
								validationMessage="超时时间最小4位最大6位" />
						</div>
						<div class="list">
							<label>重试次数：</label> <input type="text" class="k-textbox"
								data-bind="value:jnaRetrycnt" required pattern="^\d{1}$"
								validationMessage="重试次数必须为数字且建议不超过三次" maxlength="1" />
						</div>
						<div class="list">
							<label>接口阻塞时间(毫秒)：</label> <input type="text" class="k-textbox"
								data-bind="value:blockingTime" required pattern="^\d{4,6}$"
								validationMessage="接口阻塞时间最小4位最大6位" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:controlPanelSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="activeMqConfig" code="ACTIVEMQ">
					<fieldset>
						<legend>ActiveMq服务配置</legend>
						<div class="list">
							<label>服务IP地址：</label> <input type="text" class="k-textbox"
								data-bind="value:activeMqIp" required
								pattern="((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)"
								validationMessage="请输入正确的IP地址如：192.168.1.1" />
						</div>
						<div class="list">
							<label>服务端口号：</label> <input type="text" class="k-textbox"
								data-bind="value:activeMqPort" required
								pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"
								validationMessage="请输入正确的端口号 0~65535" />
						</div>
						<div class="list">
							<label>服务连接账户：</label> <input type="text" class="k-textbox"
								data-bind="value:activeMqAccount" required pattern="^\w+$"
								validationMessage="服务连接账户只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>服务连接密码：</label> <input type="password" class="k-textbox"
								data-bind="value:activeMqPassword" required pattern="^\w+$"
								validationMessage="服务连接账户只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>接收消息超时(毫秒)：</label> <input type="text" class="k-textbox"
								data-bind="value:mqReceiveTimeout" required pattern="^\d{4,6}$"
								validationMessage="超时时间最小4位最大6位" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:mqConfigSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="workStationConfig" code="WORKSTATION">
					<fieldset>
						<legend>物业费检查服务</legend>
						</br>
						<div class="list" style="width: 645px;">
							<label>物业缴费检查地址：</label> <input type="text" required
								class="k-textbox" style="width: 495px;"
								data-bind="value:wyHttpUrl" pattern="[a-zA-z]+://[^\s]*"
								validationMessage="请填写正确的URL地址" />
						</div>
						</br>
						<div class="list">
							<label>物业缴费网络检测IP：</label> <input type="text" class="k-textbox"
								data-bind="value:wyCheckedUrl" required
								pattern="((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)"
								validationMessage="请输入正确的IP地址如：192.168.1.1" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:workConfigSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="cmicConfig" code="CIMCCQ">
					<fieldset>
						<legend>中集车辆园服务</legend>
						</br>
						<div class="list" style="width: 645px;">
							<label>中集车辆园接口地址：</label> <input type="text" required
								class="k-textbox" style="width: 495px;"
								data-bind="value:cimcService" pattern="[a-zA-z]+://[^\s]*"
								validationMessage="请填写正确的URL地址" />
						</div>
						</br>
						<div class="list">
							<label>接口登录账户：</label> <input type="text" class="k-textbox"
								data-bind="value:cimcAcc" required pattern="^\w+$"
								validationMessage="服务连接账户只能为数字、字母、下划线组成" />
						</div>
						<div class="list">
							<label>接口登录密码：</label> <input type="password" class="k-textbox"
								data-bind="value:cimcPsw" required pattern="^\w+$"
								validationMessage="服务连接账户只能为数字、字母、下划线组成" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:workConfigSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
			</div>
			<div name="tabStripDiv" taskTypes="scheduler">
				<div cns="schedulerTaskConfig" code="diskCleanup">
					<fieldset>
						<legend>磁盘清理定时任务</legend>
						<div class="list">
							<label>任务执行周期：</label> <input type="text" class="k-textbox"
								maxlength="30" data-bind="value:diskCleanupξcronTrigger"
								required
								validationMessage="请输入正确的任务执行周期如：*/1 * * * * ?" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:diskCleanupSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="schedulerTaskConfig" code="assignment">
					<fieldset>
						<legend>月卡脱机定时任务</legend>
						<div class="list">
							<label>任务执行周期：</label> <input type="text" class="k-textbox"
								maxlength="30" data-bind="value:assignmentξcronTrigger" required
								validationMessage="请输入正确的任务执行周期如：*/1 * * * * ?" />
						</div>
						<div class="list">
							<label>发送间隔时间(毫秒)：</label> <input type="text" class="k-textbox"
								data-bind="value:paramsJson_intervalTime" required
								pattern="^\d{2,4}$" validationMessage="发送间隔时间最小2位最大4位" />
						</div>
						<div class="list">
							<label>失败阻塞时间(毫秒)：</label> <input type="text" class="k-textbox"
								data-bind="value:paramsJson_blockWaitTime" required
								pattern="^\d{4,6}$" validationMessage="发送间隔时间最小4位最大6位" />
						</div>
						<div class="list">
							<label>失败阻塞次数：</label> <input type="text" class="k-textbox"
								data-bind="value:paramsJson_blockCount" required
								pattern="^[0-9]+$" maxlength="2"
								validationMessage="失败阻塞次数只能为数字且最多2位数" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:assignmentSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
				<div cns="schedulerTaskConfig" code="dataUpload">
					<fieldset>
						<legend>数据上传定时任务</legend>
						<div class="list">
							<label>任务执行周期：</label> <input type="text" class="k-textbox"
								maxlength="30" data-bind="value:dataUploadξcronTrigger" required
								validationMessage="请输入正确的任务执行周期如：*/1 * * * * ?" />
						</div>
						</br>
						<div style="text-align: center;">
							<button state="Start" data-bind="click:dataUploadSave"
								class="k-button">保存配置信息并启动服务</button>
						</div>
					</fieldset>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
